package cn.biplam.front.component.view.mdManage.buffer2md;

import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.common.wrapper.UserInfo;
import cn.biplam.front.component.AjxResponse;
import cn.biplam.front.component.data.common.CaptionComp;
import cn.biplam.front.component.view.mdManage.buffer2md.main.Buffer2MdCompareTable;
import cn.biplam.front.html.base.HtmlWindow;
import cn.biplam.front.template.pageFrame.mdManage.MdPage;

/**
 * 缓冲区导入到MD前的信息比较主页面
 * @author WangSong 2009-7-1下午06:03:06
 * @version 1.0
 */
public class Buffer2MdCompareMain extends AjxResponse{
	
	public static final String cId="2201";
	public static final String aId="220101";
	
	@Override
	protected HtmlWindow ajxGet() throws ErrorMessage {
		return this.get(mUser, sHomeUrl);
	}
	
	public HtmlWindow get(UserInfo mUser,String sHomeUrl) throws ErrorMessage {
		
		MdPage mMdPage = new MdPage(cId,sHomeUrl,mUser);
		/** 设置界面标题(模型导入管理-) */
		mMdPage.setTitleDesc(CaptionComp.get(mUser, "290")+"-"+CaptionComp.get(mUser, "289"));
		/** 设置界面标题logo */
		mMdPage.setTitleLogo("/images/t_import.gif");
		/** 创建页面表格*/
		mMdPage.putManage(new Buffer2MdCompareTable().get(recordId, mUser, sHomeUrl));
		
		HtmlWindow compare = mMdPage.get();
		compare.setStyleWidth("800");
		compare.setStyleHeight("500");
		
		return compare;
	}
	
}
